<?php
/**
 * ExtDataField class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

abstract class ExtDataField extends ExtDataFieldBase
{
    /**
     * Gets the value of ExtJS allowBlank property
     * @return Boolean 
     */
    public function getAllowBlank()
    {
    	return $this->getConfig("allowblank");
    }

    /**
     * Sets the value of ExtJS allowBlank property
     * @param Boolean $value 
     */
    public function setAllowBlank($value)
    {
    	$this->setConfig("allowblank",$value);
    }

    /**
     * Gets the value of ExtJS convert property
     * @return Function 
     */
    public function getConvert()
    {
    	return $this->getConfig("convert");
    }

    /**
     * Sets the value of ExtJS convert property
     * @param Function $value 
     */
    public function setConvert($value)
    {
    	$this->setConfig("convert",$value);
    }

    /**
     * Gets the value of ExtJS dateFormat property
     * @return String 
     */
    public function getDateFormat()
    {
    	return $this->getConfig("dateformat");
    }

    /**
     * Sets the value of ExtJS dateFormat property
     * @param String $value 
     */
    public function setDateFormat($value)
    {
    	$this->setConfig("dateformat",$value);
    }

    /**
     * Gets the value of ExtJS defaultValue property
     * @return Mixed 
     */
    public function getDefaultValue()
    {
    	return $this->getConfig("defaultvalue");
    }

    /**
     * Sets the value of ExtJS defaultValue property
     * @param Mixed $value 
     */
    public function setDefaultValue($value)
    {
    	$this->setConfig("defaultvalue",$value);
    }

    /**
     * Gets the value of ExtJS mapping property
     * @return String/Number 
     */
    public function getMapping()
    {
    	return $this->getConfig("mapping");
    }

    /**
     * Sets the value of ExtJS mapping property
     * @param String/Number $value 
     */
    public function setMapping($value)
    {
    	$this->setConfig("mapping",$value);
    }

    /**
     * Gets the value of ExtJS name property
     * @return String 
     */
    public function getName()
    {
    	return $this->getConfig("name");
    }

    /**
     * Sets the value of ExtJS name property
     * @param String $value 
     */
    public function setName($value)
    {
    	$this->setConfig("name",$value);
    }

    /**
     * Gets the value of ExtJS sortDir property
     * @return String 
     */
    public function getSortDir()
    {
    	return $this->getConfig("sortdir");
    }

    /**
     * Sets the value of ExtJS sortDir property
     * @param String $value 
     */
    public function setSortDir($value)
    {
    	$this->setConfig("sortdir",$value);
    }

    /**
     * Gets the value of ExtJS type property
     * @return Mixed 
     */
    public function getType()
    {
    	return $this->getConfig("type");
    }

    /**
     * Sets the value of ExtJS type property
     * @param Mixed $value 
     */
    public function setType($value)
    {
    	$this->setConfig("type",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'allowblank' => 'allowBlank',
            'dateformat' => 'dateFormat',
            'defaultvalue' => 'defaultValue',
            'sortdir' => 'sortDir'
        ));


        $this->jsconfigs = array_merge($this->jsconfigs,array(
            'convert' => true
        ));

        $this->proptags = array_merge($this->proptags,array(
            'converter' => true
        ));
        $this->setXType(null);
        $this->setXClass('Ext.data.Field');
    }    
}
?>